﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet;
using System.Data;


namespace WebSite.Ajax
{
    public partial class Report : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string blogid = Request.QueryString["blogid"] + "";
            string bloguserid = Request.QueryString["bloguserid"] + "";
            string reporttypeid = Request.QueryString["reporttypeid"] + "";
            string content = Request.QueryString["content"] + "";

            BlogReport brinfo = new BlogReport();
            BlogReportHelper brhelper = new BlogReportHelper();
            brinfo.BlogID = blogid;
            brinfo.BlogUsersID = bloguserid;
            brinfo.ReportContent = content;
            brinfo.ReportTypeID = reporttypeid;
            //当前用户
            Users uinfo = UserBase.GetCurrentUser();
            if (uinfo != null)
            {
                brinfo.ReportUsersID = uinfo.ID;
            }

            brhelper.AddBlogReport(brinfo);

            Response.Write("1");
        }
    }
}